import { createRouter, createWebHashHistory } from "vue-router";

const routes = [
	{
		path: "/",
		name: "index",
		component: () => import("@/views/main/main.vue")
	},
	{
		path: "/:pathMatch(.*)*",
		redirect: { name: "index" }
	}
];

const router = createRouter({
	history: createWebHashHistory(import.meta.env.BASE_URL),
	routes
});

export default router;
